package com.weaponlin.domain;

import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.List;

public class CharTest {
    private char ch;

    public char getCh() {
        return ch;
    }

    public void setCh(char ch) {
        this.ch = ch;
    }

    public static void main(String[] args) {
        CharTest t = new CharTest();
        System.out.println("show: " + t.getCh());
        txtInteger(new Integer[]{new Integer(0), new Integer(1)});

        Integer[] l = new Integer[3];
        for (Integer i : l) {
            System.out.println(i);
        }
        Arrays.fill(l, new Integer(999));
        for (Integer i : l) {
            System.out.println(i);
        }

        System.out.println(l[0] == l[1]);
    }

    public static void txtInteger(Integer[] integers) {
        System.out.println(Arrays.toString(integers));
        System.out.println(Arrays.asList(integers));
        /**
         * OK，打印的是对象内容，这里接受的是基本类型的包装器类型数组;
         * 说明什么？
         * */
    }
}
